package com.ants.boot.system.dto.sysrole;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author 蚂蚁会花呗
 * @date 2022/3/16 14:29
 */
@ApiModel("修改状态")
public class UpdateStatusDto {

    @ApiModelProperty(value = "主键id值")
    @Min(value = 1,message = "id不能为空")
    private Integer id;

    @Range(min = 1,max = 2,message = "值只能是1或者2")
    @ApiModelProperty(value = "状态值，1或者2,1正常2，停用")
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
